package Test1230;

public class Test19 {
    public static void main(String[] args) {
        // (19)元素3和元素2互换位置
        int[] arr = {5, 3, 7, 2, 6};
        int t1=1;
        int t2=3;
        int t=arr[t1];
        arr[t1]=arr[t2];
        arr[t2]=t1;
        for(int i:arr){
            System.out.print(i);
        }
    }
}